/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @addtogroup DeviceManager
 * @{
 *
 * @brief 分布式设备管理模块，用于获取可信设备和本地设备的相关信息。
 *
 * @since 20
 */

/**
 * @file oh_device_manager_err_code.h
 *
 * @brief 声明设备管理模块错误码信息。
 *
 * @include <distributedhardware/device_manager/oh_device_manager_err_code.h>
 * @kit DistributedServiceKit
 * @library libdevicemanager_ndk.so
 * @syscap SystemCapability.DistributedHardware.DeviceManager
 *
 * @since 20
 */


#ifndef OH_DEVICE_MANAGER_ERR_CODE_H
#define OH_DEVICE_MANAGER_ERR_CODE_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief 分布式设备管理错误码信息。
 *
 * @since 20
 */
typedef enum DeviceManager_ErrorCode {
    /**
     * @error 执行成功。
     */
    ERR_OK = 0,
    /**
     * @error 权限校验失败。
     */
    ERR_PERMISSION_ERROR = 201,
    /**
     * @error 非法参数。
     */
    ERR_INVALID_PARAMETER = 401,
    /**
     * @error 函数执行失败。
     */
    DM_ERR_FAILED = 11600101,
    /**
     * @error 获取设备管理服务失败。
     */
    DM_ERR_OBTAIN_SERVICE = 11600102,
    /**
     * @error 获取bundleName失败。
     */
    DM_ERR_OBTAIN_BUNDLE_NAME = 11600109,
} DeviceManager_ErrorCode;
#ifdef __cplusplus
};
#endif

/** @} */
#endif
